package com.avasthi.cli.twitter;

public class AmazonInstantVideoReview {

	public AmazonInstantVideoReview(AmazonInstantVideoProduct product, String userId, String profileName,
			float helpfulness, float score, long time, String summary,
			String text) {
		super();
		this.product = product;
		this.userId = userId;
		this.profileName = profileName;
		this.helpfulness = helpfulness;
		this.score = score;
		this.time = time;
		this.summary = summary;
		this.text = text;
	}
	AmazonInstantVideoProduct product;
	String userId;
	String profileName;
	float helpfulness;
	float score;
	long time;
	String summary;
	String text;
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getProfileName() {
		return profileName;
	}
	public AmazonInstantVideoProduct getProduct() {
		return product;
	}
	public void setProduct(AmazonInstantVideoProduct product) {
		this.product = product;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + Float.floatToIntBits(helpfulness);
		result = prime * result + ((product == null) ? 0 : product.hashCode());
		result = prime * result
				+ ((profileName == null) ? 0 : profileName.hashCode());
		result = prime * result + Float.floatToIntBits(score);
		result = prime * result + ((summary == null) ? 0 : summary.hashCode());
		result = prime * result + ((text == null) ? 0 : text.hashCode());
		result = prime * result + (int) (time ^ (time >>> 32));
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AmazonInstantVideoReview other = (AmazonInstantVideoReview) obj;
		if (Float.floatToIntBits(helpfulness) != Float
				.floatToIntBits(other.helpfulness))
			return false;
		if (product == null) {
			if (other.product != null)
				return false;
		} else if (!product.equals(other.product))
			return false;
		if (profileName == null) {
			if (other.profileName != null)
				return false;
		} else if (!profileName.equals(other.profileName))
			return false;
		if (Float.floatToIntBits(score) != Float.floatToIntBits(other.score))
			return false;
		if (summary == null) {
			if (other.summary != null)
				return false;
		} else if (!summary.equals(other.summary))
			return false;
		if (text == null) {
			if (other.text != null)
				return false;
		} else if (!text.equals(other.text))
			return false;
		if (time != other.time)
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		return true;
	}
	public void setProfileName(String profileName) {
		this.profileName = profileName;
	}
	public float getHelpfulness() {
		return helpfulness;
	}
	public void setHelpfulness(float helpfulness) {
		this.helpfulness = helpfulness;
	}
	public float getScore() {
		return score;
	}
	public void setScore(float score) {
		this.score = score;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
}
